package online.mjchow.fic.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by mjchow on 17-12-11.
 */
public class DateUtil {

    public static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");

    public static Date parse(String dateStr) {
        Date date = null;
        try {
            date = format.parse(dateStr);
        } catch (Exception e) {}
        return date;
    }
}
